<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
%>
<ul class="topMenu">
	<li class="left">Collect and aggregate popular links from tens of professional sites and blogs.</li>
	<%
		if (user != null) {
	%><li class="right">Welcome, <%=user.getNickname()%>&nbsp;&nbsp;&nbsp;&nbsp;<a
		href="<%=userService.createLogoutURL(request.getRequestURI())%>">Log
	out</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<c:url value="/aboutus.jsp" />">About&nbsp;Us</a></li>
	<%
		} else {
	%><li class="right"><a
		href="<%=userService.createLoginURL(request.getRequestURI())%>">Log
	in</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<c:url value="/aboutus.jsp" />">About&nbsp;Us</a></li>
	<%
		}
	%>
</ul>